package com.butterfly.hotkey.dashboard.biz.convert;


import com.butterfly.hotkey.dashboard.biz.entity.User;
import com.butterfly.hotkey.dashboard.biz.vo.user.UserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author butterfly
 * @since 2025/2/23
 */
@Mapper
public interface UserConvert {

    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    /**
     * convert do -> vo
     *
     * @param user user
     * @return UserVO
     */
    UserVO convert(User user);
}
